package com.example.codeservice.dao;

import com.example.codeservice.pojo.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author zhouyp
 * @program example-parent
 * @description
 * @create 2020-07-27
 */
public interface AuthCodeDao extends JpaRepository<AuthCode, Long> {

	AuthCode findFirstByEmailOrderByCreatetimeDesc(String email);

}
